@model ToDoListWeb.ViewModels.MenuInfoModel
<link rel="stylesheet" href="~/css/getMenuInfo.css" />
@{
    Layout = null;
}

<div id="user-info" style="overflow:hidden;">
    <p>
        <a id="user-a" asp-area="" asp-controller="User" asp-action="UserInfo"><img src="~/images/用户.png" id="user-img"></a>
        <a id="userName" asp-area="" asp-controller="User" asp-action="UserInfo"><span id="user-name">@(@Model.User.NickName??Model.User.UserName)</span></a>
    </p>
</div>
<div id="user-menu">
    <a class="menu-list" href="/User/ShowEvents">
        <img src="~/images/完成.png">
        清单总览
        <span>@Model.User.Inventory.Count</span>
    </a>
    <a class="menu-list" href="/Matter/ShowPastdueMatters">
        <img src="~/images/过期.png">
        过期事项
        <span>@Model.NumberOfPastdueMatter</span>
    </a>
    <a class="menu-list" href="/Matter/ShowAllMatters">
        <img src="~/images/所有事项.png">
        所有事项
        <span>@Model.NumberOfMatter</span>
    </a>
    <a class="menu-list" href="/Matter/SearchPage">
        <img src="~/images/搜索.png">
        查找事项
        <span></span>
    </a>
</div>
